package com.andy.blog.admin.dto.document;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.metadata.data.WriteCellData;
import lombok.Data;

import java.io.InputStream;
import java.io.Serializable;

/**
 * Created by andy on 2023/5/4 18:09
 */
@Data
@ColumnWidth(20)
@ContentRowHeight(50)
@HeadRowHeight(26)
public class ExcelDataDTO implements Serializable {

    private static final long serialVersionUID = 7496624955883234124L;

    /**
     * 导出图片有五种方式, String/byte[]/URL/inputStream/File;  具体使用方法见官网 https://easyexcel.opensource.alibaba.com/docs/current/quickstart/write
     */
    @ExcelProperty(value = "图片")
    @ColumnWidth(40)
    private InputStream inputStream;

    /**
     * 超链接
     */
    @ExcelProperty(value = "超链接")
    private WriteCellData<String> hyperlink;
}
